#include "IndexBuffer.hpp"
#include "StagingBuffer.hpp"
void Lumine::IndexBuffer::Create(vk::DeviceSize size)
{
    StagingBuffer stagingBuffer;
    stagingBuffer.Create(size);
    void *data = stagingBuffer.MapMemory(size);
    memcpy(data, squareIndices.data(), (size_t)size);
    stagingBuffer.UnMapMemory();

    createBuffer(size, vk::BufferUsageFlagBits::eTransferDst | vk::BufferUsageFlagBits::eIndexBuffer, vk::MemoryPropertyFlagBits::eDeviceLocal, buffer, bufferMemory);
    copyBuffer(stagingBuffer.Buffer(), buffer, size);
}

void Lumine::IndexBuffer::Bind(const vk::raii::CommandBuffer &cmd)
{
}
